<?php
    if (!defined('EXPONENT')) exit('');

    if (exponent_permissions_check('configuration',exponent_core_makeLocation('administrationmodule'))) {

        $object = $db->selectObject('profilemodule_meeting_config',"location_data='".serialize($loc)."'");
                    
        
        if (!defined('SYS_FORMS')) require_once(BASE.'subsystems/forms.php');
        exponent_forms_initialize();
        

        $form = new form();
        
        $form->meta('module','profilemodule');
        $form->meta('action','meeting_config_save');
        $form->meta('src',$loc->src);
        
        $form->register('mail_to_customer_title','Title mail to customer',new textcontrol($object->mail_to_customer_title));
        $form->register('mail_to_customer','Mail to customer content',new htmleditorcontrol($object->mail_to_customer));
        $form->register('mail_to_admin_title','Mail to admin title',new textcontrol($object->mail_to_admin_title));
        $form->register('mail_to_admin','Mail to admin content',new htmleditorcontrol($object->mail_to_admin));
        $form->register('mail_list','Admins mail list',new  texteditorcontrol($object->mail_list,10,40));
        $form->register('submit','',new buttongroupcontrol('Save','','Cancel'));
        $template = new template('profilemodule','_meeting_config');
        $template->assign('is_edit',(isset($link->id)? 1 : 0));
        $template->assign('config',$config);
        $template->assign('form_html',$form->toHTML());
        $template->output();

    } else {
        echo SITE_403_HTML;
    }

?>
